home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
t3_1
/
risc_src.lha
/
risc_sources
/
sparc
/
float.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-12
|
671b
|
58 lines
#include <math.h>
fladd(z,x,y)
double *x,*y,*z;
{ *z = *x + *y;}
flsubtract(z,x,y)
double *x,*y,*z;
{ *z = *x - *y;}
flmultiply(z,x,y)
double *x,*y,*z;
{ *z = *x * *y;}
fldivide(z,x,y)
double *x,*y,*z;
{ *z = *x / *y;}
flless(x,y)
double x,y;
{ if (x < y) return 1; return 0;}
flequal(x,y)
double x,y;
{ if (x == y) return 1; return 0;}
flgreater(x,y)
double x,y;
{ if (x > y) return 1; return 0;}
fix(x)
double x;
{ return x;}
double flote(x)
long x;
{ return x;}
fxmul(x,y)
int x,y;
{ return (x*y);}
fxdiv(x,y)
int x,y;
{ return (x/y);}
fxrem(x,y)
int x,y;
{ return (x%y);}
hack_sprintf(a,b,c)
char *a,*b;
double *c;
{sprintf(a,b,*c);}